package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * DoseUnits generated by hbm2java
 */
@Entity
@Table(name="dose_units"
    ,catalog="madr_bd10"
)
public class DoseUnits  implements java.io.Serializable {


     private Integer idDosUni;
     private String nameDosUni;
     private Boolean statusDosUni;
     private Set sowings = new HashSet(0);
     private Set controlses = new HashSet(0);

    public DoseUnits() {
    }

	
    public DoseUnits(String nameDosUni) {
        this.nameDosUni = nameDosUni;
    }
    public DoseUnits(String nameDosUni, Boolean statusDosUni, Set sowings, Set controlses) {
       this.nameDosUni = nameDosUni;
       this.statusDosUni = statusDosUni;
       this.sowings = sowings;
       this.controlses = controlses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_dos_uni", unique=true, nullable=false)
    public Integer getIdDosUni() {
        return this.idDosUni;
    }
    
    public void setIdDosUni(Integer idDosUni) {
        this.idDosUni = idDosUni;
    }
    
    @Column(name="name_dos_uni", nullable=false, length=45)
    public String getNameDosUni() {
        return this.nameDosUni;
    }
    
    public void setNameDosUni(String nameDosUni) {
        this.nameDosUni = nameDosUni;
    }
    
    @Column(name="status_dos_uni")
    public Boolean getStatusDosUni() {
        return this.statusDosUni;
    }
    
    public void setStatusDosUni(Boolean statusDosUni) {
        this.statusDosUni = statusDosUni;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="doseUnits")
    public Set getSowings() {
        return this.sowings;
    }
    
    public void setSowings(Set sowings) {
        this.sowings = sowings;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="doseUnits")
    public Set getControlses() {
        return this.controlses;
    }
    
    public void setControlses(Set controlses) {
        this.controlses = controlses;
    }




}


